//专门来操作state数据
import initialState from '../states/courseTabList';

export default function (state = initialState, action) {
  switch (action.type) {
    case 'CHANGE_COURSE_FIELD':
      return {
        ...initialState,
        curField: action.field,
      };
    default:
      return state;
  }
}
